//
//  UIView+Shake.h
//  NuoDun_Customer
//
//  Created by Avidya on 2019/3/27.
//  Copyright © 2019 Avidya. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^ActionBlock)(void);

typedef NS_ENUM(NSUInteger, GradientType) {
    GradientTypeTopToBottom = 0, //!< 从上到下
    GradientTypeLeftToRight = 1, //!< 从左到右
};

typedef NS_ENUM(NSUInteger, LeShadowPathType) {
    LeShadowPathTop         = 0,
    LeShadowPathBottom      = 1,
    LeShadowPathLeft        = 2,
    LeShadowPathRight       = 3,
    LeShadowPathCommon      = 4,
    LeShadowPathAround      = 5,
};

@interface UIView (Shake)

- (void)shake;

+ (CGFloat)widthWithString:(NSString *)string labelHeight:(CGFloat)labelHeight fontSize:(CGFloat)fontSize;
+ (CGFloat)heightWithString:(NSString *)string labelWidth:(CGFloat)labelWidth fontSize:(CGFloat)fontSize;

+ (CGFloat)heightWithString:(NSString *)string labelWidth:(CGFloat)labelWidth fontBoldSize:(CGFloat)fontBoldSize;

- (void)handleViewControlEvents:(UIControlEvents)controlEvents withBlock:(ActionBlock)block;


/**
 * 手机型号
 */
+ (NSString *)systemModel;

/**
 *  是否刘海头
 */
+ (BOOL)isIphoneX;


@end

NS_ASSUME_NONNULL_END
